#ifndef COLOR_H_INCLUDED
#define COLOR_H_INCLUDED

class Color {
public:
    Color( void ){ colors[0] = 0; colors[1] = 0; colors[2] = 0; }
    Color( float r, float g, float b ) { colors[0] = r; colors[1] = g; colors[2] = b; };
    float & operator[]( unsigned int i ) { return colors[i]; }
    float red( void ) const { return colors[0]; }
    float green( void ) const { return colors[1]; }
    float blue( void ) const { return colors[2]; }
private:
    float colors[3];
};

#endif // COLOR_H_INCLUDED
